<?php

namespace App\Providers;

use App\Models\Device;
use App\Models\HeartLog;
use App\Models\LocationLog;
use App\Models\Manager;
use App\Models\SmsLog;
use App\Models\VisitLog;
use App\Models\VisitWebTask;
use App\Observers\DeviceObserver;
use App\Observers\HeartLogObserver;
use App\Observers\LocationLogObserver;
use App\Observers\ManagerObserver;
use App\Observers\SmsLogObserver;
use App\Observers\VisitLogObserver;
use App\Observers\VisitWebTaskObserver;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
{
    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        //
    }

    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        //
        Schema::defaultStringLength(191); //add fixed sql
        Device::observe(DeviceObserver::class);
        Manager::observe(ManagerObserver::class);
        HeartLog::observe(HeartLogObserver::class);
        LocationLog::observe(LocationLogObserver::class);
        SmsLog::observe(SmsLogObserver::class);
        VisitWebTask::observe(VisitWebTaskObserver::class);
    }
}
